package org.zxy.cxf.spring.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.zxy.cxf.spring.HelloWorld;

public class CXFClient {
	
	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
		HelloWorld helloWorld = (HelloWorld) applicationContext.getBean("client2");
		String returnValue =helloWorld.sayHello("zhang");
		System.out.println(returnValue);
	}
	
}
